package com.example.leetcode;

/**
 * Created by Quincy on 2018/9/11.
 */
public class ClimStair {

    public int climStair(int n){
        int a =1, b =1;
        for (int i = 0 ; i < n; i++){
            a = b;
            b = a + b;
        }
        return a;
    }
}
